package com.weixx.yctp.cp.download;

import cc.eamon.open.status.StatusException;
import com.weixx.yctp.cp.dao.CpDao;
import com.weixx.yctp.cp.service.CpService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.*;

public class DownServiceImp implements DownService{
    @Autowired
    CpService cpService;

    @Override
    public List<Map<String, Object>> getDownList(Date startDate,Date endDate,Long page, Integer rows) throws StatusException {
        //根据时间查询记录
        List<Map<String, Object>> entityMapList = cpService.queryByTime(startDate,endDate,page,rows);
        //得到了需要下载的记录

        //获取下载记录的key
        if(entityMapList.size()>0){
        Set<String> titleList = entityMapList.get(0).keySet();
        }
        return null;
    }
}
